﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class NPCiron:NPC
    {
        private string IronInfo;
        public NPCiron(string name, NPCtype type, string IronInfo) : base(name, type)
        {
            this.IronInfo = IronInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你好！欢迎来到铁匠NPC！");
            Console.WriteLine("我是{0},铁匠:{1}", base.Name, this.IronInfo);
        }
    }
}
